/**
 * Copyright:  Copyright (c) 2013
 *
 * @FileName		: PrimeCostServiceImpl.java
 * @PageName		: 제조원가, 제조경비
 * @Date			: 오후 5:21:45
 * @LastModifier	: 최경민
 * @LastModifyDate	: 
 * @LastModifier	: 
 * Change history	:
 */
package com.pulp.management.service.impl;

import java.sql.SQLException;
import java.util.List;

import com.pulp.management.dao.PrimeCostDAO;
import com.pulp.management.model.PrimeCostInfo;
import com.pulp.management.service.PrimeCostService;

/**
 * @author 최경민
 *
 */
public class PrimeCostServiceImpl implements PrimeCostService {
	private PrimeCostDAO primeCostDAO;
	
	/**
	 * PrimeCostDAO 객체를 반환한다.
	 *
	 * @return the prime cost dao
	 */
	public PrimeCostDAO getPrimeCostDAO(){
		return primeCostDAO;
	}
	
	/**
	 * PrimeCostDAO 객체를 설정한다.
	 *
	 * @param primeCostDAO the new prime cost dao
	 */
	public void setPrimeCostDAO(PrimeCostDAO primeCostDAO){
		this.primeCostDAO = primeCostDAO;
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.service.PrimeCostService#getLineChartList()
	 */
	@Override
	public List<PrimeCostInfo> getLineChartList() throws SQLException {
		return primeCostDAO.getLineChartList();
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.service.PrimeCostService#getPrimeTableList()
	 */
	@Override
	public List<PrimeCostInfo> getPrimeTableList() throws SQLException {
		return primeCostDAO.getPrimeTableList();
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.service.PrimeCostService#getFactoryCostTableList()
	 */
	@Override
	public List<PrimeCostInfo> getFactoryCostTableList() throws SQLException {
		return primeCostDAO.getFactoryCostTableList();
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.service.PrimeCostService#getStackChartList()
	 */
	@Override
	public List<PrimeCostInfo> getStackChartList() throws SQLException {
		return primeCostDAO.getFactoryCostStackChartList();
	}

}
